package com.vrv.vap.dong.controller;

import com.vrv.vap.dong.entity.SysUser;
import com.vrv.vap.dong.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wh1107066
 * @date 2022/11/17
 */
@RestController
@RequestMapping("sysUser")
public class SysUserController {

    @Autowired
    private SysUserService sysUserService;

    @RequestMapping("save")
    public String save(SysUser sysUser){
        sysUserService.save(sysUser);
        return "添加成功";
    }
    @RequestMapping("findAll")
    public Object findAll(){
        return sysUserService.findListAll();
    }
}